<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateTemplateStylesTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('template_styles', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 50)->comment('模板风格名称');
            $table->integer('size')->default(0)->unsigned()->comment('文件大小');
            $table->string('path')->nullable()->comment('存储路径');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('template_styles');
    }
}
